package com.imooc.aop.demo1;

import org.junit.Test;

/**
 * @author wangc
 */
public class SpringDemo1Test {
    @Test
    public void demo1() {
        UserDao userDao = new UserDaoImpl();

        UserDao proxy =  (UserDao)new  MyJdkProxy(userDao).createProxy();
        proxy.save();
        proxy.update();
        proxy.delete();
        proxy.find();
    }
}
